


                <!-- /section:settings.box -->
                <div class="row">
                    <div class="space-4"></div>
                    <h2 align="center">{$title}</h2>
                        <table border="1" cellspacing="0" >
                            <thead>
                            <tr>
                                <th>预约者</th>
                                <th>预约者手机号</th>
                                <th>教练</th>
                                <th>教练电话号码</th>
                                <th>训练场地</th>
                                <th>车牌号码</th>
                                <th>学车类别</th>
                                <th>预约日期</th>
                                <th>时间段</th>
                                <th>学时</th>
                                <th>科目类别</th>
                                <th>类别</th>
                                <th>价格</th>
                                <th>是否支付</th>
                                <th>预约者的状态</th>
                                <th>下单时间</th>
                            </tr>
                            </thead>
                            <tbody>

                            <foreach name="data" item="val">

                                <tr>
                                    <td class="center">
                                        {$val.user_name}
                                    </td>
                                    <td>{$val.user_phone}</td>
                                    <td>{$val.coach_name}</td>
                                    <td>{$val.coach_phone}</td>
                                    <td>{$val.site}</td>
                                    <td>{$val.car_num}</td>
                                    <td>{$val.type}</td>
                                    <td>{$val.day|date="Y-m-d ",###}</td>
                                    <td>{$val.time}</td>
                                    <td>{$val.study_hours}</td>
                                    <td>
                                        <if condition=" $val['course'] eq 1 ">
                                            科目二
                                            <else />
                                            科目三
                                        </if>
                                    </td>
                                    <td>
                                        <if condition=" $val['category'] eq 1 ">
                                            模拟
                                            <else />
                                            普通
                                        </if>
                                    </td>
                                    <td>{$val.price}</td>
                                    <td>
                                        <if condition=" $val['ispay'] eq 1 ">
                                            已支付
                                            <else />
                                            未支付
                                        </if>
                                    </td>
                                    <td>
                                        <switch name="val['status']" >
                                            <case value="1"><b>已学习</b></case>
                                            <case value="2"><b>未学习</b></case>
                                            <case value="3"><b>取消</b></case>
                                            <case value="4"><b>过期</b></case>
                                        </switch>

                                    </td>

                                    <td>{$val.add_time|date="Y-m-d H:i:s",###}</td>

                                </tr>























                            </foreach>
                             <if condition="$data eq null"><tr><td colspan="11" align="center">没有数据！</td></tr></if>
                            </tbody>
                        </table>
                    {$page}
                    <!-- PAGE CONTENT ENDS -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.page-content -->
    </div>
</div><!-- /.main-content -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        window.print();
        $(".check-all").click(function () {
            $(".comments").prop("checked", this.checked);
        });
        $(".comments").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });
        history.back();
    })
</script>
</body>
</html>
